﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Controller
{
    public class DialUpCtr : AbstractCtr
    {
        public DialUpCtr()
        {
            
        }

        public bool HaveConnection()
        {
            bool result = false;

            try
            {
                if (this.service.DialServiceUp() > 0)
                {
                    result = true;
                }
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }

            return result;
        }
    }
}
